package org.tnc.hr.model;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "event_all_view", catalog = "tnc")
public class EventAllView implements Serializable {

    private static final long serialVersionUID = -3326004397468137918L;
    private Integer eventId;
    private String loginName;
    private String email;
    private String userName;
    private String startDate;
    private String endDate;
    private String eventName;
    private String eventAdd;
    private String eventText;
    private Timestamp eventDate;
    private String bcId;
    private String bcName;
    private String bcDuty;

    /** default constructor */
    public EventAllView() {
    }

    /** minimal constructor */
    public EventAllView(Integer eventId, String loginName, String email, Timestamp eventDate, String bcId, String bcName) {
        this.eventId = eventId;
        this.loginName = loginName;
        this.email = email;
        this.eventDate = eventDate;
        this.bcId = bcId;
        this.bcName = bcName;
    }

    /** full constructor */
    public EventAllView(Integer eventId, String loginName, String email, String userName, String startDate,
            String endDate, String eventName, String eventAdd, String eventText, Timestamp eventDate, String bcId,
            String bcName, String bcDuty) {
        this.eventId = eventId;
        this.loginName = loginName;
        this.email = email;
        this.userName = userName;
        this.startDate = startDate;
        this.endDate = endDate;
        this.eventName = eventName;
        this.eventAdd = eventAdd;
        this.eventText = eventText;
        this.eventDate = eventDate;
        this.bcId = bcId;
        this.bcName = bcName;
        this.bcDuty = bcDuty;
    }

    @Id
    @Column(name = "event_id", nullable = false)
    public Integer getEventId() {
        return this.eventId;
    }

    public void setEventId(Integer eventId) {
        this.eventId = eventId;
    }

    @Column(name = "login_name", nullable = false, length = 50)
    public String getLoginName() {
        return this.loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    @Column(name = "email", nullable = false)
    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Column(name = "user_name", length = 100)
    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Column(name = "start_date", length = 19)
    public String getStartDate() {
        return this.startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    @Column(name = "end_date", length = 19)
    public String getEndDate() {
        return this.endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    @Column(name = "event_name")
    public String getEventName() {
        return this.eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    @Column(name = "event_add")
    public String getEventAdd() {
        return this.eventAdd;
    }

    public void setEventAdd(String eventAdd) {
        this.eventAdd = eventAdd;
    }

    @Column(name = "event_text", length = 1024)
    public String getEventText() {
        return this.eventText;
    }

    public void setEventText(String eventText) {
        this.eventText = eventText;
    }

    @Column(name = "event_date", nullable = false, length = 19)
    public Timestamp getEventDate() {
        return this.eventDate;
    }

    public void setEventDate(Timestamp eventDate) {
        this.eventDate = eventDate;
    }

    @Column(name = "bc_id", nullable = false, length = 100)
    public String getBcId() {
        return this.bcId;
    }

    public void setBcId(String bcId) {
        this.bcId = bcId;
    }

    @Column(name = "bc_name", nullable = false)
    public String getBcName() {
        return this.bcName;
    }

    public void setBcName(String bcName) {
        this.bcName = bcName;
    }

    @Column(name = "bc_duty", length = 100)
    public String getBcDuty() {
        return this.bcDuty;
    }

    public void setBcDuty(String bcDuty) {
        this.bcDuty = bcDuty;
    }

}